
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGPolygonChunk.h>
#include <OpenSG/OSGPolygonChunkBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_PolygonChunk_dump_overloads_0_2, dump, 0, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_PolygonChunk_activate_overloads_1_2, activate, 1, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_PolygonChunk_changeFrom_overloads_2_3, changeFrom, 2, 3)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_PolygonChunk_deactivate_overloads_1_2, deactivate, 1, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_PolygonChunk()
{
    scope* osg_PolygonChunkBase_scope = new scope(
    class_< osg::PolygonChunkBase, bases< osg::StateChunk > , boost::noncopyable >("PolygonChunkBase", no_init)
//        .def_readonly("CullFaceFieldMask", &osg::PolygonChunkBase::CullFaceFieldMask)
//        .def_readonly("FrontFaceFieldMask", &osg::PolygonChunkBase::FrontFaceFieldMask)
//        .def_readonly("FrontModeFieldMask", &osg::PolygonChunkBase::FrontModeFieldMask)
//        .def_readonly("BackModeFieldMask", &osg::PolygonChunkBase::BackModeFieldMask)
//        .def_readonly("SmoothFieldMask", &osg::PolygonChunkBase::SmoothFieldMask)
//        .def_readonly("OffsetFactorFieldMask", &osg::PolygonChunkBase::OffsetFactorFieldMask)
//        .def_readonly("OffsetBiasFieldMask", &osg::PolygonChunkBase::OffsetBiasFieldMask)
//        .def_readonly("OffsetPointFieldMask", &osg::PolygonChunkBase::OffsetPointFieldMask)
//        .def_readonly("OffsetLineFieldMask", &osg::PolygonChunkBase::OffsetLineFieldMask)
//        .def_readonly("OffsetFillFieldMask", &osg::PolygonChunkBase::OffsetFillFieldMask)
//        .def_readonly("StippleFieldMask", &osg::PolygonChunkBase::StippleFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::PolygonChunkBase::MTInfluenceMask)
        .def("getClassType", &osg::PolygonChunkBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::PolygonChunkBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::PolygonChunkBase::*)() )&osg::PolygonChunkBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::PolygonChunkBase::*)() const)&osg::PolygonChunkBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::PolygonChunkBase::getContainerSize)
        //.def("getCullFace", (osg::Int32& (osg::PolygonChunkBase::*)() )&osg::PolygonChunkBase::getCullFace, return_value_policy< copy_const_reference >())
        //.def("getCullFace", (const osg::Int32& (osg::PolygonChunkBase::*)() const)&osg::PolygonChunkBase::getCullFace, return_value_policy< copy_const_reference >())
        //.def("getFrontFace", (osg::Int32& (osg::PolygonChunkBase::*)() )&osg::PolygonChunkBase::getFrontFace, return_value_policy< copy_const_reference >())
        //.def("getFrontFace", (const osg::Int32& (osg::PolygonChunkBase::*)() const)&osg::PolygonChunkBase::getFrontFace, return_value_policy< copy_const_reference >())
        //.def("getFrontMode", (osg::Int32& (osg::PolygonChunkBase::*)() )&osg::PolygonChunkBase::getFrontMode, return_value_policy< copy_const_reference >())
        //.def("getFrontMode", (const osg::Int32& (osg::PolygonChunkBase::*)() const)&osg::PolygonChunkBase::getFrontMode, return_value_policy< copy_const_reference >())
        //.def("getBackMode", (osg::Int32& (osg::PolygonChunkBase::*)() )&osg::PolygonChunkBase::getBackMode, return_value_policy< copy_const_reference >())
        //.def("getBackMode", (const osg::Int32& (osg::PolygonChunkBase::*)() const)&osg::PolygonChunkBase::getBackMode, return_value_policy< copy_const_reference >())
        //.def("getSmooth", (bool& (osg::PolygonChunkBase::*)() )&osg::PolygonChunkBase::getSmooth, return_value_policy< copy_const_reference >())
        .def("getSmooth", (const bool& (osg::PolygonChunkBase::*)() const)&osg::PolygonChunkBase::getSmooth, return_value_policy< copy_const_reference >())
        //.def("getOffsetFactor", (osg::Real32& (osg::PolygonChunkBase::*)() )&osg::PolygonChunkBase::getOffsetFactor, return_value_policy< copy_const_reference >())
        .def("getOffsetFactor", (const osg::Real32& (osg::PolygonChunkBase::*)() const)&osg::PolygonChunkBase::getOffsetFactor, return_value_policy< copy_const_reference >())
        //.def("getOffsetBias", (osg::Real32& (osg::PolygonChunkBase::*)() )&osg::PolygonChunkBase::getOffsetBias, return_value_policy< copy_const_reference >())
        .def("getOffsetBias", (const osg::Real32& (osg::PolygonChunkBase::*)() const)&osg::PolygonChunkBase::getOffsetBias, return_value_policy< copy_const_reference >())
        //.def("getOffsetPoint", (bool& (osg::PolygonChunkBase::*)() )&osg::PolygonChunkBase::getOffsetPoint, return_value_policy< copy_const_reference >())
        .def("getOffsetPoint", (const bool& (osg::PolygonChunkBase::*)() const)&osg::PolygonChunkBase::getOffsetPoint, return_value_policy< copy_const_reference >())
        //.def("getOffsetLine", (bool& (osg::PolygonChunkBase::*)() )&osg::PolygonChunkBase::getOffsetLine, return_value_policy< copy_const_reference >())
        .def("getOffsetLine", (const bool& (osg::PolygonChunkBase::*)() const)&osg::PolygonChunkBase::getOffsetLine, return_value_policy< copy_const_reference >())
        //.def("getOffsetFill", (bool& (osg::PolygonChunkBase::*)() )&osg::PolygonChunkBase::getOffsetFill, return_value_policy< copy_const_reference >())
        .def("getOffsetFill", (const bool& (osg::PolygonChunkBase::*)() const)&osg::PolygonChunkBase::getOffsetFill, return_value_policy< copy_const_reference >())
        //.def("getStipple", (osg::Int32& (osg::PolygonChunkBase::*)(const osg::UInt32) )&osg::PolygonChunkBase::getStipple, return_value_policy< copy_const_reference >())
        //.def("getStipple", (osg::MFInt32& (osg::PolygonChunkBase::*)() )&osg::PolygonChunkBase::getStipple, return_value_policy< copy_const_reference >())
        .def("getStipple", (const osg::MFInt32& (osg::PolygonChunkBase::*)() const)&osg::PolygonChunkBase::getStipple, return_value_policy< copy_const_reference >())
        .def("setCullFace", &osg::PolygonChunkBase::setCullFace)
        .def("setFrontFace", &osg::PolygonChunkBase::setFrontFace)
        .def("setFrontMode", &osg::PolygonChunkBase::setFrontMode)
        .def("setBackMode", &osg::PolygonChunkBase::setBackMode)
        .def("setSmooth", &osg::PolygonChunkBase::setSmooth)
        .def("setOffsetFactor", &osg::PolygonChunkBase::setOffsetFactor)
        .def("setOffsetBias", &osg::PolygonChunkBase::setOffsetBias)
        .def("setOffsetPoint", &osg::PolygonChunkBase::setOffsetPoint)
        .def("setOffsetLine", &osg::PolygonChunkBase::setOffsetLine)
        .def("setOffsetFill", &osg::PolygonChunkBase::setOffsetFill)
        .def("getBinSize", &osg::PolygonChunkBase::getBinSize)
        .def("copyToBin", &osg::PolygonChunkBase::copyToBin)
        .def("copyFromBin", &osg::PolygonChunkBase::copyFromBin)
        .def("create", &osg::PolygonChunkBase::create)
        .def("createEmpty", &osg::PolygonChunkBase::createEmpty)
        .def("shallowCopy", &osg::PolygonChunkBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("OffsetBiasFieldId") = (int)osg::PolygonChunkBase::OffsetBiasFieldId;
    scope().attr("OffsetLineFieldId") = (int)osg::PolygonChunkBase::OffsetLineFieldId;
    scope().attr("BackModeFieldId") = (int)osg::PolygonChunkBase::BackModeFieldId;
    scope().attr("NextFieldId") = (int)osg::PolygonChunkBase::NextFieldId;
    scope().attr("OffsetFactorFieldId") = (int)osg::PolygonChunkBase::OffsetFactorFieldId;
    scope().attr("SmoothFieldId") = (int)osg::PolygonChunkBase::SmoothFieldId;
    scope().attr("OffsetPointFieldId") = (int)osg::PolygonChunkBase::OffsetPointFieldId;
    scope().attr("StippleFieldId") = (int)osg::PolygonChunkBase::StippleFieldId;
    scope().attr("OffsetFillFieldId") = (int)osg::PolygonChunkBase::OffsetFillFieldId;
    scope().attr("CullFaceFieldId") = (int)osg::PolygonChunkBase::CullFaceFieldId;
    scope().attr("FrontModeFieldId") = (int)osg::PolygonChunkBase::FrontModeFieldId;
    scope().attr("FrontFaceFieldId") = (int)osg::PolygonChunkBase::FrontFaceFieldId;

    delete osg_PolygonChunkBase_scope;

    class_< osg::PolygonChunk, bases< osg::PolygonChunkBase > , boost::noncopyable, osg::PolygonChunkRefPtr >("PolygonChunk", no_init)
        .def("getStaticClassId", &osg::PolygonChunk::getStaticClassId)
        .def("changed", &osg::PolygonChunk::changed)
        .def("dump", &osg::PolygonChunk::dump, osg_PolygonChunk_dump_overloads_0_2())
        .def("activate", &osg::PolygonChunk::activate, osg_PolygonChunk_activate_overloads_1_2())
        .def("changeFrom", &osg::PolygonChunk::changeFrom, osg_PolygonChunk_changeFrom_overloads_2_3())
        .def("deactivate", &osg::PolygonChunk::deactivate, osg_PolygonChunk_deactivate_overloads_1_2())
        .def("switchCost", &osg::PolygonChunk::switchCost)
        .staticmethod("getStaticClassId")
        //.def( self < other< osg::StateChunk >() )
        //.def( self == other< osg::StateChunk >() )
        //.def( self != other< osg::StateChunk >() )
    ;


    register_ptr_to_python<osg::PolygonChunkPtr>();
    implicitly_convertible<osg::PolygonChunkRefPtr, osg::PolygonChunkPtr>();
    implicitly_convertible<osg::PolygonChunkPtr, osg::StateChunkPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::PolygonChunkPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::PolygonChunkPtr>);
}

